<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 函数 -->
    <button onclick='alert("哈哈")'>点击</button>
    <script>
      function add(x, y){
        return x+y;
      }
     let a =  add(1,2);
     console.log("a= " + a);
     let b =  add(1,3,40);
     console.log("b= " + b);
     let c =  add(1);
     console.log("c= " + c);
    </script>
</body>
</html>